package models
{
	import mx.collections.ArrayCollection;
	
	public class ApplicationModel
	{
		public static const LOCACOES_VIEW:int = 0;
		public static const MIDIAS_VIEW:int = 1;
		public static const CLIENTES_VIEW:int = 2;		
		
		[Bindable]
		public var activeView:int = MIDIAS_VIEW;		
		
		[Bindable]
		public var midias:ArrayCollection;
		
		public function ApplicationModel()
		{
			midias = new ArrayCollection();
			midias.addItem(new Midia(1, "A Lagoa Azul", 1919));
			midias.addItem(new Midia(2, "2001: Uma Odisséia no Espaço", 1968));
			midias.addItem(new Midia(3, "Star Wars - Epsiódio 7", 2015));			
			
		}

	}
}